package ai.mspbots.service.users.entity;

import cn.hutool.core.util.IdUtil;
import lombok.Data;

import java.io.Serializable;

@Data
public class UsersEntity implements Serializable {

    private Long id;

    private String name;

    private String type = "users";

    public static UsersEntity of(Long id) {
        UsersEntity usersEntity = new UsersEntity();
        usersEntity.setId(id);
        usersEntity.setName(IdUtil.randomUUID());
        return usersEntity;
    }
}
